﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NW;

namespace PM_Remote
{
	public delegate void PM_ServerClientSet(PM_ServerClient client);
	public class PM_Server : NWServer
	{
		ProcessMemory pm = null;

		public PM_Server(int iport)
			: base(iport)
		{
			pm = new ProcessMemory();
		}
		public event PM_ServerClientSet onClientCreate;
		protected override NWClient MakeClient(System.Net.Sockets.TcpClient C)
		{
			var res=new PM_ServerClient(pm, C);
			if (onClientCreate != null)
				onClientCreate(res);
			return res;
		}
	}
}